import Vue from 'vue';
import Vuex from 'vuex';

Vue.use(Vuex)

const store = new Vuex.Store({
   state: { 
       token: '' 
    },
   mutations: {  
   	setToken(state,token){
   		state.token = token;
   	}
   },
   getters: {
   	getToken(state){
   		return state.toekn
   	}
   }
})

export default store;